package com.go.manaservice.mapper;

import com.go.manaservice.entity.TblManagement;
import com.go.manaservice.entity.vo.ManagmentQuery;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author ZhengYuXiang
 * @version 1.0
 * @date 2021/11/25 12:13 上午
 */
@Mapper
public interface Management {

 /**
  * 根据密码,账号查询一个，或者查询所有,或者分页查询
  *
  * @param managmentQuery
  * @return
  */
 List<TblManagement> selectMana (ManagmentQuery managmentQuery);

 /**
  * 根据ID查询管理人员
  *
  * @param id
  * @return
  */
 TblManagement findManagementOne(@Param(value = "id") Integer id);

 /**
  * 带条件查询管理员的数量
  *
  * @param managmentQuery
  * @return
  */
 int selectManaCount(ManagmentQuery managmentQuery);
 /**
  * 删除数根据id
  *
  * @param map
  * @return
  */
 int deleteManagement(Map<String, Object> map);

 /**
  * 批量删除用户
  *
  * @param ids
  * @return
  */
 int deleteMany(ArrayList<Integer> ids);

 /**
  * 添加管理人员
  *
  * @param tblManagement
  * @return
  */
 int addManagement(TblManagement tblManagement);

 /**
  * 修改管理人员的信息
  *
  * @param tblManagement
  * @return
  */
 int updateManagement(TblManagement tblManagement);


}
